export default function (experience) {
  let level = 0
  let totalExperience = 0
  if (experience > 10000) {
    level = 6
    totalExperience = 99999
  } else if (experience > 5000) {
    level = 5
    totalExperience = 10000
  } else if (experience > 2500) {
    level = 4
    totalExperience = 5000
  } else if (experience > 1250) {
    level = 3
    totalExperience = 2500
  } else if (experience > 625) {
    level = 2
    totalExperience = 1250
  } else if (experience > 200) {
    level = 1
    totalExperience = 625
  } else {
    level = 0
    totalExperience = 200
  }
  return {level, totalExperience}
}
